package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合伙人对象 t_partner
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class TPartner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phoneNumber;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 分成比例，比如 0.8 表示80%，指合伙人收 80% */
    @Excel(name = "分成比例，比如 0.8 表示80%，指合伙人收 80%")
    private Float commissionRate;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setCommissionRate(Float commissionRate) 
    {
        this.commissionRate = commissionRate;
    }

    public Float getCommissionRate() 
    {
        return commissionRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("realName", getRealName())
            .append("phoneNumber", getPhoneNumber())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("commissionRate", getCommissionRate())
            .toString();
    }
}
